package com.xue.service;

import java.util.List;
import java.util.Map;

public interface IRedisService {
	//设置 key 和 value
		public boolean set(String key,Object value);
		//根据key获取 value值
		public Object get(String key);
		//设置指定的 key和value 指定过期时间
		public boolean set(String key,Object value,long time);
		
		//删除指定的key
		public void del(String ... key) ;
		
		public boolean setExpire(String key,long time);
		
		public long getExpire(String key);
		
			
		public boolean setPush(String key ,Object value);
		
		public List<Object> lGet(String key);

		public boolean getExists(String key);
		
		public boolean hmset(String key,Map<String,Object> map);
		
		public Map<Object,Object> hmget(String key);
}
